package com.hongtao3.hsync.ui;

import java.io.File;
import java.io.IOException;

import com.hongtao3.hsync.vo.RemoteFile;

public class RemotePanel extends ResourcesPanel {
  
	public RemotePanel(){
		super();
		setType("R:");
	}
  
  public File getFile(String path){
	  String tmpPath=System.getProperty("java.io.tmpdir")+File.separator;
	  try {
		String tmp2=new File(tmpPath+path.substring(3)).getCanonicalPath();
		path=path.substring(0,3)+tmp2.substring(tmpPath.length());
	} catch (IOException e) {
		e.printStackTrace();
	}
	  return new RemoteFile(path);
  }
  
}
